package com.whfc.fuum.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@ToString
public class AppProjectParam implements Serializable {

    private Integer deptId;
    private Integer id;
    @NotEmpty
    private String name;
    @NotEmpty
    private String title;
    private String shortInfo;
    private Integer period;
    private Integer money;

    private List<ImgParam> imgList;
    private List<AppProjectPostParam> postList;
    private List<AppProjectUnitParam> unitList;
    @NotEmpty
    @Length(max = 20)
    private String projectCode;
    @NotEmpty
    private String builderLicenseNum;
    @NotNull
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date completeDate;

    @NotNull
    private Double lng;
    @NotNull
    private Double lat;

}
